package com.by.biz;

import com.by.dao.DistrictDao;
import com.by.pojo.District;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.Collections;
import java.util.List;
@Service("districtBiz")
public class DistrictBizImpl implements DistrictBiz{
    @Autowired
    private DistrictDao districtDao;

    public List<District> getAllDistrict() {
        return districtDao.getAllDistrict();
    }
}
